/** 
 * Project Name:sys-portal-Extjs 
 * File Name:MainViewCtrl.js 
 * Package Name: 聊天消息界面
 * Author : 吴Yuan|小森森
 * Date:2019年9月19日下午12:12:13 
 * Copyright (c) 2019, 15909910367@163.com All Rights Reserved. 
 * 
 */
Ext.define('Jason.view.chat.MainViewCtrl',{
	extend: 'Ext.app.ViewController',
    alias: 'controller.chatViewModel',
    friendViewItemClick:function(node,record){
    	var me = this,
    		view = me.getView(),
    		messageView = view.down('messageView');
    		reciverLabel = messageView.down('#reciver');
    	if(record.get('leaf')===true){
			reciverLabel.setText('To:'+record.get('text'));
    		//这里缺少设置接收者用户编号
			reciverLabel.reciverCode = record.get('id');
    	}
    }
});